package com.zh.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

@Getter
@ApiModel("爬取来源枚举")
public enum CrawlSource {

    BILIBILI(100, "哔哩哔哩", "https://search.bilibili.com"),
    HUALV(101, "华律网", "https://www.66law.cn/");
    @EnumValue
    @JsonValue
    @ApiModelProperty(value = "来源编号", example = "100 101 102")
    private final Integer code;
    private final String desc;
    private final String domain;

    CrawlSource(Integer code, String desc, String domain) {
        this.code = code;
        this.desc = desc;
        this.domain = domain;
    }
}
